#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import sys

infile=open(sys.argv[1],'r')
count=0
for line in infile:
    count+=1
infile.close()
print count